//
//  HomeThirdCollectionViewCell.m
//  CommunitySupermarketProiect
//
//  Created by 吕惠卿 on 2017/10/11.
//  Copyright © 2017年 吕惠卿. All rights reserved.
//

#import "HomeThirdCollectionViewCell.h"

@implementation HomeThirdCollectionViewCell

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatUI];
        
    }
    return self;
}
-(void)creatUI{
    _rightImg = [[UIImageView alloc]init];
//    _rightImg.backgroundColor = [UIColor redColor];
    [self addSubview:_rightImg];
    [_rightImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView.mas_right).with.offset(-8);
        make.height.mas_equalTo(60);
        make.width.mas_equalTo(self.contentView.frame.size.width/3);
        make.centerY.mas_equalTo(self);
    }];
    _bigLab = [[UILabel alloc]init];
    //    _bigLab.backgroundColor = [UIColor redColor];
    _bigLab.font = [UIFont fontWithName:@"ArialMT"size:15];
    _bigLab.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_bigLab];
    [_bigLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(12);
        make.left.equalTo(self.contentView.mas_left).with.offset(15);
        make.right.equalTo(_rightImg.mas_left).with.offset(-8);
        make.height.mas_equalTo(25);
    }];
    
    _contLab = [[UILabel alloc]init];
    //    _contLab.backgroundColor = [UIColor yellowColor];
    _contLab.textAlignment = NSTextAlignmentLeft;
    _contLab.font = [UIFont systemFontOfSize:12.0];
    _contLab.textColor = [UIColor grayColor];
    [self addSubview:_contLab];
    [_contLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_bigLab.mas_bottom).with.offset(0);
        make.left.equalTo(self.contentView.mas_left).with.offset(15);
        make.right.equalTo(_rightImg.mas_left).with.offset(-8);
        make.height.mas_equalTo(20);
    }];
    
}

@end
